home *** CD-ROM | disk | FTP | other *** search
- /*
- File: MacIncludes.h
-
- Contains: This file contains all of the Mac includes that one needs
-
- Version: SimpleText 1.4 or later
-
- Written by: Tom Dowdy
-
- Copyright: © 1990-1997 by Apple Computer, Inc., all rights reserved.
-
- File Ownership:
-
- DRI: Tom Dowdy
-
- Other Contact: Jim Negrette
-
- Technology: Macintosh Graphics Group
-
- Writers:
-
- (ted) Tom Dowdy
- (ecs) Eric Schlegel
- (Gr) Greg Robbins
- (TD) Tom Dowdy
-
- Change History (most recent first):
-
- $Log: MacIncludes.h,v $
- Revision 1.15 1999/02/19 22:10:15 danp
- Removed unneeded ANSI header includes
-
- Revision 1.14 1999/02/10 21:09:45 danp
- Added ControlDefinitions.h`
-
- Revision 1.13 1999/02/10 18:29:59 danp
- Removed ControlDefs.h inclusion. Don't know why I put it there in the firstplace
-
- Revision 1.12 1999/02/04 00:04:14 kilroy
- *** empty log message ***
-
- Revision 1.11 1998/11/25 21:01:17 wilkes
- Removed all GX references.
-
- Revision 1.10 1998/11/19 01:16:15 wilkes
- Removed reliance on QuickTime. Most changes were conditionalized with
- ALLOW_QUICKTIME...
-
- Revision 1.9 1998/11/11 22:28:53 wilkes
- Fixed various problems caused by the interface changes made by Nitin earlier,
- mostly involving static RoutineDescriptors...
-
- Revision 1.8 1998/10/12 18:50:54 danp
- *** empty log message ***
-
- Revision 1.7 1998/09/15 22:54:13 voas
- Changed to reflect latest Carbon header changes I just made.
-
- Revision 1.6 1998/09/15 18:59:44 jiarocci
- SimpleText now builds with -DTARGET_CARBON=1. Still needs further cleanup.
-
- Revision 1.5 1998/09/02 20:44:04 danp
- Minor changes for blue mwerks compiles
-
-
- Revision 1.4 1998/08/26 16:04:13 mkellner
- Make work with new (built) headers
-
- Revision 1.3 1998/03/20 03:19:59 mkellner
- change qd.thePort to FrontWindow()
- add SysEnvirons
-
- Revision 1.2 1998/03/19 03:55:26 mkellner
- - Add <ConditionalMacros.h> and <QTMLMapNames.h>
- - Fix captialization of math.h, stdio.h, strings.h, etc.
- - Change Types.h, Memory.h and Windows.h to MacTypes, MacMemory, and MacWindows
- - Add inital set of stubs.
- - Change Types.r to MacTypes.r
-
- Revision 1.1.1.1 1998/03/18 22:56:10 ivory
- Initial checkin of SimpleText.
-
-
- 8 8/11/97 3:49 PM Tom Dowdy
- {SimpleTextSources}MacIncludes.h
-
- 7 8/11/97 3:07 PM Tom Dowdy
- rolling in nav services
-
- 6 7/30/97 3:42 PM Tom Dowdy
- Live scrolling now
-
- 5 7/29/97 6:27 PM Tom Dowdy
- Added appearance
-
- 4 7/29/97 5:27 PM Tom Dowdy
- Cleanup for QT build
-
- 3 7/29/97 2:06 PM Tom Dowdy
- Removed all of the old and boring refs
-
- 2 7/29/97 1:52 PM Tom Dowdy
- Various new interface fixes
-
- 1 7/28/97 11:19 AM Duane Byram
- first added to Source Safe project
-
- <11> 8/21/96 ecs set up conditional macros if necessary
- <10> 6/10/96 ted GENERATINGCFM should really be GENERATINGPOWERPC
- <9> 5/31/96 ted fixing GX PPC calls
- <8> 5/31/96 ted adding PPC, FAT, and NuKernel builds
- <7> 2/8/96 ted Fixing SC compiler problems
- <7> 2/8/96 ted
- <5> 1/5/96 ted adding ifdef to interface version check
- <4> 1/4/96 ecs compile w/ CodeWarrior
- <3> 10/17/95 Gr Only define WindowStandardState and WindowUserState macros if
- not already defined
- <2> 9/15/95 Gr Only define GetWindowGoAwayFlag/ZoomFlag if not already defined
- <1> 8/21/95 TD First checked in.
-
- */
-
-
- #ifndef __MACINCLUDES__
- #define __MACINCLUDES__
-
- #if (!defined(UseMacDump))
-
- #ifndef BUILDING_FOR_SYSTEM7
- #define BUILDING_FOR_SYSTEM7 1
- #endif
-
- #include <MacTypes.h>
- #include <Resources.h>
- #include <Quickdraw.h>
- #include <Fonts.h>
- #include <Events.h>
- #include <MacWindows.h>
- #include <Menus.h>
- #include <TextEdit.h>
- #include <Dialogs.h>
- #include <ToolUtils.h>
- #include <MacMemory.h>
- #include <SegLoad.h>
- #include <ControlDefinitions.h>
- #include <Files.h>
- #include <OSUtils.h>
- #include <Traps.h>
- #include <Script.h>
- #include <ColorPicker.h>
- #include <FixMath.h>
- #include <Packages.h>
- #include <Palettes.h>
- #include <QDOffscreen.h>
- #include <Sound.h>
- #include <Errors.h>
- #include <AppleEvents.h>
- #include <DiskInit.h>
- #include <Retrace.h>
- #include <Folders.h>
- #include <Lists.h>
- //#include <CTBUtilities.h>
- #include <Gestalt.h>
- #include <Finder.h>
- #include <Scrap.h>
- #include <Devices.h>
- #include <Video.h>
- #include <Aliases.h>
- #include <SoundInput.h>
- #include <Movies.h>
- #include <Printing.h>
- #include <Balloons.h>
- #include <MixedMode.h>
- #include <Drag.h>
- #include <TextServices.h>
- #include <TSMTE.h>
- #include <AppleGuide.h>
- //#include <Speech.h>
- #include <Icons.h>
- #include <LowMem.h>
- #include <CodeFragments.h>
- #include <TextUtils.h>
- #include <Appearance.h>
-
- // #include "AGFile.h"
- #include "NavigationServicesSupport.h"
-
- // Balloons.h
- #define kDefaultBalloonVariant 2
-
- // For looking at all of our windows, not just the visible ones.
-
- // No glue for this either, sigh.
- #define TESetClickLoop(L,H) ((**(H)).clickLoop = (L))
-
- // defines I like to use all of the time
- extern void _DataInit(); // part of Runtime library
-
- #define TopLeft(aRect) (* (Point *) &(aRect).top)
- #define BotRight(aRect) (* (Point *) &(aRect).bottom)
-
- #define RectWidth(aRect) ((aRect).right - (aRect).left)
- #define RectHeight(aRect) ((aRect).bottom - (aRect).top)
-
- #define Max(X, Y) ( ((X)>(Y)) ? (X) : (Y) )
- #define Min(X, Y) ( ((X)>(Y)) ? (Y) : (X) )
-
- #define Pin(VALUE, MIN, MAX) ( ((VALUE) < (MIN)) ? (MIN) : ( ((VALUE) > (MAX)) ? (MAX) : (VALUE) ) )
-
- #define nrequire(CONDITION, LABEL) if (true) {if ((CONDITION)) goto LABEL; }
- #define require(CONDITION, LABEL) if (true) {if (!(CONDITION)) goto LABEL; }
-
- // The Pascal equivalent of strcpy, takes two Pascal string pointers
- #define PSTRCPY(P1, P2) BlockMove(P2, P1, P2[0]+1)
-
- // Concatante one character C onto the string S
- #define CHARCAT(S, C) S[(S[0]+1)] = C; S[0]++;
-
- /* The Pascal equivalent of strcat, takes two Pascal string pointers */
- #define PSTRCAT(P1, P2) \
- BlockMove(&P2[1], &P1[(P1[0]+1)], P2[0]); \
- P1[0] += P2[0];
-
- #if defined(MakeMacDump)
- #pragma dump "MacIncludesDump"
- #endif
-
- #else // from the if !defined at the top of the file
-
- #if defined(UseMacDump)
- #pragma load "MacIncludesDump"
- #endif
- #endif
-
- #endif /* __MACINCLUDES__ */
-